const router = require("express").Router();

const addUser = require("./handler/addUser");
const login = require("./handler/login");
const register = require("./handler/register");
const userList = require("./handler/userList");
const { search, userInfo } = require("./handler/search");
const { addAgree, addAgreeList } = require("./handler/addAgree");

router.post("/addUser", addUser);

router.post("/login", login);

router.post("/register", register);

router.post("/userList", userList);

router.post("/search", search);

router.post("/agreeList", addAgreeList);

router.post("/userInfo", addAgreeList);

router.post("/addAgree", addAgree);

module.exports = router;
